#include #include #include #include #include #include "mcube000.h" int main(void) { FILE *fp; float gc[3]={1, 1, 1}; float rc[3]={1, 0, 0}; float grc[3]={0, 1, 0}; float bc[3]={0, 0, 1}; float v[nX][nY][nZ]; float th,tr; if((fp = fopen("mcube002.wrl", "w"))==NULL){ printf("Can't Open the File!\n"); exit(1); } ini(fp); Viewpoint(fp); /* dr_grid(fp, gc); */ dr_scale(fp, gc); mk_data(v); tr = 0.6; th = ZM; mk_equ_face002(fp, (th*1)/3, v, rc, tr); mk_equ_face002(fp, (th*2)/3, v, grc, tr); mk_equ_face002(fp, (th), v, bc, tr); fclose(fp); return 0; }